package com.trailer.base.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import com.trailer.base.R;
import com.trailer.base.view.BaseView;


/**
 * RecyclerView没有数据的空白页面
 * Created by shihuiyun
 * on 2021/1/9
 */
public class ListEmptyToView extends LinearLayout {

    private BaseView view;

    public ListEmptyToView(Context context) {
        this(context, null);

    }

    public ListEmptyToView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);


    }

    public ListEmptyToView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context, attrs, defStyleAttr);

    }

    private void init(Context context, AttributeSet attrs, int defStyleAttr) {
        if (context instanceof BaseView) {
            this.view = (BaseView) context;
        }

        inflate(context, R.layout.emptyview_layout_empty_to, this);


    }


}
